/**
 * Created by superxing-cto on 17/4/19.
 */
/**
 * Created by superxing-cto on 17/1/18.
 */

function rand_share_title() {
    var arr = [
        '这首诗有毒啊...',
        '被这首诗雷到了...',
        '被这个声音征服了...',
    ];

    return arr[rand(0, 2)];
}

function rand(min, max) {
    return min + Math.floor(Math.random() * (max - min + 1));
}

wx.ready(function () {
    initShareAppMessage(rand_share_title(), rand_share_title(), 'https://' + window.location.host + '/declaimer?channel=' + channel, 'https://apiv2.superxing.cc/assets/declaimer/img/share.png', function () {
        data_count(3, 'https://' + window.location.host + '/declaimer');
    });
    initShareTimeline(rand_share_title(), 'http://' + window.location.host + '/declaimer?channel=' + channel, 'https://apiv2.superxing.cc/assets/declaimer/img/share.png', function () {
        data_count(3, 'https://' + window.location.host + '/declaimer');
    });
});